import '@/lib/uniapp/uni.promisify.adaptor';
import '@/utils/app';
import '@/store/index';
import { createApp } from 'vue';
import App from '@/App';
import Footer from '@/components/global/Footer/index.vue';
import Header from '@/components/global/Header/index.vue';
import Loader from '@/components/global/Loader/index.vue';
import Toast from '@/components/global/Toast/index.vue';
import OrderPopup from '@/components/global/OrderPopup/index.vue';
import QrPopup from '@/components/global/QrPopup/index.vue';
import OrderDetailPopup from '@/components/global/OrderDetailPopup/index.vue';
import RegisterMemberPopup from '@/components/global/RegisterMemberPopup/index.vue';

const app = createApp(App);
// 全局组件
app.component("Footer", Footer);
app.component("Header", Header);
app.component("Loader", Loader);
app.component("Toast", Toast);
app.component("OrderPopup", OrderPopup);
app.component("QrPopup", QrPopup);
app.component("OrderDetailPopup", OrderDetailPopup);
app.component("RegisterMemberPopup", RegisterMemberPopup);
// 渲染
app.mount('#app');
